package com.laima.basic.utils.poi;

import com.laima.basic.model.SysNotice;
import org.junit.jupiter.api.Test;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * @program: backend-server
 * @description:
 * @author: T
 * @create: 2021-03-25 17:25
 **/
public class ExportTest {
   /* @Test
    public void test() throws Exception {
        List<SysNotice> list = new ArrayList<SysNotice>();
        SysNotice sysNotice = new SysNotice();
        sysNotice.setNoticeTitle(sysNotice.getNoticeTitle());
        list.add(sysNotice);
        FileOutputStream out = new FileOutputStream("D:\\test.xls");
        ExcelUtil<SysNotice> util1 = new ExcelUtil<SysNotice>(SysNotice.class);
        util1.getListToExcel(list, "test信息");
        System.out.println("----执行完毕----");*/
    }

    /*	FileInputStream fis = new FileInputStream("D:\\test.xls");
		ExcelUtil<TestModel> util1 = new ExcelUtil<TestModel>(TestModel.class);
		List<TestModel> testModels = util1.getExcelToList("test", fis);
		for (TestModel testModel : testModels) {
			System.out.println(testModel.toString());
		}
		System.out.println("----执行完毕----");*/



